// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using Elastic.Clients.Elasticsearch.Serverless.Fluent;
using Elastic.Clients.Elasticsearch.Serverless.Serialization;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Elastic.Clients.Elasticsearch.Serverless.Cluster;

public sealed partial class ClusterJvmVersion
{
	/// <summary>
	/// <para>Always `true`. All distributions come with a bundled Java Development Kit (JDK).</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("bundled_jdk")]
	public bool BundledJdk { get; init; }

	/// <summary>
	/// <para>Total number of selected nodes using JVM.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("count")]
	public int Count { get; init; }

	/// <summary>
	/// <para>If `true`, a bundled JDK is in use by JVM.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("using_bundled_jdk")]
	public bool UsingBundledJdk { get; init; }

	/// <summary>
	/// <para>Version of JVM used by one or more selected nodes.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("version")]
	public string Version { get; init; }

	/// <summary>
	/// <para>Name of the JVM.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("vm_name")]
	public string VmName { get; init; }

	/// <summary>
	/// <para>Vendor of the JVM.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("vm_vendor")]
	public string VmVendor { get; init; }

	/// <summary>
	/// <para>Full version number of JVM.<br/>The full version number includes a plus sign (+) followed by the build number.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("vm_version")]
	public string VmVersion { get; init; }
}